From: Jasper St. Pierre Date: Thu, 20 Dec 2012 03:45:16 +0000 (-0500) Subject: volume: Don't set the visibility of the main icon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5168 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9ebeb645705b5c1b02954f3c57fbc89197898344;p=gnome-shell.git volume: Don't set the visibility of the main icon As the main icon is inside the actor, this is needless calculation. https://bugzilla.gnome.org/show_bug.cgi?id=690539 --- diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index cf9e762b5..9f65d71eb 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -249,8 +249,7 @@ const Indicator = new Lang.Class({ _syncVisibility: function() { this.actor.visible = this._hasPulseAudio; - this.mainIcon.visible = this._hasPulseAudio; - this._headphoneIcon.visible = this._hasPulseAudio && this._volumeMenu.hasHeadphones; + this._headphoneIcon.visible = this._volumeMenu.hasHeadphones; }, _onScrollEvent: function(actor, event) {